<?php

namespace app\mini\controller\v1\client\validate;


use think\Validate;

class CarValidate extends Validate
{
    protected $rule = [
        'id'      => 'require',
        'car_numbers'      => 'require',
        'brand_id'       => 'require',
        'series_id'       => 'require',
        'car_type'      => 'require',
        'travel_time'      => 'require',
        'vin'         => 'require',
        'mileage'     => 'require',
        'date_time'     => 'require'
    ];

    protected $message = [
        'car_numbers.require' => '车牌号不能为空',
    ];

    protected $scene = [
        'add'  => ['car_numbers'],
        'update'  => ['id','car_numbers'],
        'update_picture'  => ['id'],
        'maintain'  => ['date_time'],
        'more_info'=>['id']
    ];
}